package com.xiaoyao.novel.service;

import java.util.List;

import com.xiaoyao.novel.dao.FriendLinkDao;
import com.xiaoyao.novel.pojo.FriendLink;

public class FriendLinkService extends BaseService<FriendLink> {

	static FriendLinkDao dao = new FriendLinkDao();

	public FriendLinkService() {
		super(dao);
	}

	static List<FriendLink> list = null;

	@Override
	public List<FriendLink> getAll() {
		if (list==null) {
			list= super.getAll();
		}
		return list ;
	}
	@Override
	public void update(FriendLink object) {
		super.update(object);
		list= super.getAll();
	}
	@Override
	public void insert(FriendLink object) {
		super.insert(object);
		list= super.getAll();
	}
	@Override
	public void delete(Object id) {
		super.delete(id);
		list=super.getAll(); 
	}

}
